package sim.tests.games.bullet;

import java.util.Random;

import sim.Image;

public class Grass extends Tile
{
	

	public Grass(float x, float y)
	{
		super(x, y,  getRandomImage());
		
	}
	
	public static Image getRandomImage()
	{
		Random rad = new Random();
		
		switch(rad.nextInt(3))
		{
		
		case 0:
			return new Image("grass.png");
			
		case 1:
			return new Image("grass2.png");
			
		case 2:
			return new Image("grass3.png");
			
		}
		return null;
	}

}
